#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void max(int* a, int* b)
{
	int temp = *a;
	*a = *b;
	*b = temp;
}
int main()
{
	int a = 0;
	int b = 0;
	int c = 0;
	int temp = 0;
	scanf("%d %d %d", &a, &b, &c);
	if (a < b)
	{
		max(&a, &b);
	}
	if (a < c)
	{
		max(&a, &c);
	}
	if (b < c)
	{
		max(&b, &c);
	}
	printf("%2d %2d %2d\n", a, b, c);
	return 0;

}